home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 4.iso
/
src
/
swtools
/
trubasic
/
rolldemos
/
demos
/
sci
/
vfunc.tru
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1994-08-02
|
325 b
|
16 lines
!
! VFUNC. Graph a vector function.
!
LIBRARY "sgfunc.trc"
call tw_wset_title(0,"vfunc")
CALL SetTitle("Vector Function")
CALL SetCanvas("cyan")
CALL FvaGraph(-3,5,-3,5,1,"white white magenta")
get point x,y
END
SUB Fv(x,y,mag,ang)
LET mag = Sqr(x*x+y*y)
IF mag=0 then LET ang=0 else LET ang = -Angle(x,y)
END SUB